package org.mm4juser.entity;

import jakarta.persistence.*;
import lombok.*;

import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "tb_base_table")
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public class BaseTable {
	@Id
	private Integer id;//ID
	@Column
	private String creator;//创建者
	@Column
	private LocalDateTime creationDate;//创建时间
	@Column
	private String modifier;//修改者
	@Column
	private LocalDateTime modificationDate;//修改时间
	@Column
	private Boolean isDeleted;//是否删除 0-否 1-是
	@Column
	@Version
	private Integer version;//版本
}

